<?php //$Id: CLMUSTAT.def.conf.inc.php,v 1.2 2006/11/02 21:42:17 moosh Exp $
/**
 * CLAROLINE
 *
 * This file describe the parameter for forum tool
 *
 * @version 1.8 $Revision: 1.2 $
 *
 * @copyright 2001-2006 Universite catholique de Louvain (UCL)
 *
 * @license http://www.gnu.org/copyleft/gpl.html (GPL) GENERAL PUBLIC LICENSE
 *
 * @see http://www.claroline.net/wiki/index.php/Config
 *
 * @author Claro Team <cvs@claroline.net>
 *
 * @package CLMUSTAT
 *
 */

// TOOL
$conf_def['config_code']='CLMUSTAT';
$conf_def['config_file']='applet_micro_stat.conf.php';
$conf_def['config_name'] = 'Micro stats applet';
$conf_def['config_class']='applet';

$conf_def['section']['rights']['label']='General settings';
$conf_def['section']['rights']['description']='Settings of the tool';
$conf_def['section']['rights']['properties'] =
array ( 'display_stats_to_everybody'
,       'display_stats_to_platform_admin'
,       'display_stats_to_course_creator'
,       'display_stats_to_authenticated_user'
,       'display_stats_to_tagged_user'
,       'tag_on_user_to_detect'
);

//PROPERTIES
// Setup forum Options.
$conf_def_property_list['display_stats_to_everybody']
= array ('label'     => 'Every body (include anonymous) can see the stats'
        ,'description' => 'Allow every users to see the micro stats'
        ,'display'       => true
        ,'default'   => false
        ,'type'      => 'boolean'
        ,'container' => 'VAR'
        ,'readonly'      => FALSE
        ,'acceptedValue' => array ( 'TRUE'=>'Allow'
                                  , 'FALSE'=>'Deny'
                                  )
        );

$conf_def_property_list['display_stats_to_platform_admin']
= array ('label'     => 'platform Admin can see the stats'
        ,'description' => ''
        ,'display'       => true
        ,'default'   => true
        ,'type'      => 'boolean'
        ,'container' => 'VAR'
        ,'readonly'      => FALSE
        ,'acceptedValue' => array ( 'TRUE'=>'Allow'
                                  , 'FALSE'=>'Deny'
                                  )
        );

$conf_def_property_list['display_stats_to_course_creator']
= array ('label'     => 'User having right to create courses can see the stats'
        ,'description' => ''
        ,'display'       => true
        ,'default'   => false
        ,'type'      => 'boolean'
        ,'container' => 'VAR'
        ,'readonly'      => FALSE
        ,'acceptedValue' => array ( 'TRUE'=>'Allow'
                                  , 'FALSE'=>'Deny'
                                  )
        );

$conf_def_property_list['display_stats_to_authenticated_user']
= array ('label'     => 'Every body authenticated can see the stats'
        ,'description' => ''
        ,'display'       => true
        ,'default'   => false
        ,'type'      => 'boolean'
        ,'container' => 'VAR'
        ,'readonly'      => FALSE
        ,'acceptedValue' => array ( 'TRUE'=>'Allow'
                                  , 'FALSE'=>'Deny'
                                  )
        );

$conf_def_property_list['display_stats_to_tagged_user']
= array ('label'     => 'Everybody wich are tagged by the given tag can see the stats'
        ,'description' => ''
        ,'display'       => true
        ,'default'   => false
        ,'type'      => 'boolean'
        ,'container' => 'VAR'
        ,'readonly'      => FALSE
        ,'acceptedValue' => array ( 'TRUE'=>'Allow'
                                  , 'FALSE'=>'Deny'
                                  )
        );


$conf_def_property_list['tag_on_user_to_detect']
= array ('label'     => 'tag name'
        ,'description' => 'The tag name to track in to user_properties table, and  where  value  is  boolean'
        ,'display'     => true
        ,'default'   => 'can_view_micro_stats'
        ,'type'      => 'string'
        ,'container' => 'VAR'
        ,'readonly'      => FALSE
        //,'acceptedValue' => array ( 'max'=>'Allow', 'false'=>'Deny' )
        );

$conf_def_property_list['CLMUSTATcache_lifeTime']
= array ('label'     => 'Cache Life time'
        ,'description' => 'The statistics are cached to increase performance. This information is a gadget. Refresh is one time a day or  perhaps eveyr hours is enough'
        ,'display'       => false
        ,'default'   => 3600*4
        ,'type'      => 'integer'
        ,'container' => 'VAR'
        ,'readonly'      => FALSE
        ,'acceptedValue' => array ( 'max'=>3600*24*7
                                  , 'min'=>60
                                  )
        );


$conf_def_property_list['CLMUSTAT_countOfLastCourse']
= array ('label'     => 'Max of last course to display'
        ,'description' => 'You can display last created courses'
        ,'display'       => true
        ,'default'   => 5
        ,'type'      => 'integer'
        ,'container' => 'VAR'
        ,'readonly'      => FALSE
        ,'acceptedValue' => array ( 'max'=>40
                                  , 'min'=>60
                                  )
        );

        
?>